package com.timerecording.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author smz41
 * @description: TODO
 * @date 2024/5/2
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("re_operate_log")
public class OperateLogEntity {

    @ApiModelProperty("主键")
    private Integer operateLogId;

    @ApiModelProperty("用户id")
    private Integer operateUserId;

    @ApiModelProperty("用户类型")
    private Integer operateUserType;

    @ApiModelProperty("用户名称")
    private String  operateUserName;

    @ApiModelProperty("操作内容")
    private String  content;

    /**
     *  删除标识
     * @see com.timerecording.Enum.SuccessEnum
     */
    @ApiModelProperty("请求结果")
    private Boolean successFlag;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("请求路径")
    private String url;

    @ApiModelProperty("ip地址")
    private String ip;












}
